package com.icoding.trangphuc


class Account{

	static constraints = {
		username(blank:false,unique:true)
		password(blank:false)
		email(blank:false)
	}

	String firstName
	String lastName
	String username
	String password
	String email
	String address
	Boolean sex
	Date dateOfBirth
	boolean enabled
	boolean accountExpired
	boolean accountLock
	boolean passwordExpired
	
	static hasMany = [roles:Role]
}
